package com.jinke.api.modules.ums.dto;

import com.jinke.api.modules.app.enums.MemberType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * @projectName:
 * @title: OverseasUserAddParam
 * @description: 海外仓用户新增请求参数 避免影响员工新增 和 用户新增 使用不同的类
 * @see:
 * @author: hhp
 * @version: 1.0.0
 * @createTime: 2024/8/23 9:14
 */
@Data
public class OverseasUserAddParam {
    @NotEmpty
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    @NotEmpty
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @ApiModelProperty(value = "用户头像")
    private String icon;
    @Email
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
    @ApiModelProperty(value = "备注")
    private String note;
    private MemberType memberType;

    // 新增加的
    @ApiModelProperty(value = "真实姓名")
    @Length(max = 100, message = "{length.max}")
    private String realName;
    /*@ApiModelProperty(value = "余额")
    private Integer balance;*/
    @Length(max = 100, message = "{length.max}")
    @ApiModelProperty(value = "公司")
    private String company;
    @Length(max = 18, message = "{length.max}")
    @ApiModelProperty(value = "自定义邀请码")
    private String invitationCode;
    @ApiModelProperty(value = "利润费率")
    private BigDecimal profitRate;
    /*@ApiModelProperty(value = "状态")
    private Integer status;*/
    @ApiModelProperty(value = "微信号")
    @Length(max = 100, message = "{length.max}")
    private String wxId;
    @ApiModelProperty(value = "保证金")
    private BigDecimal earnestRate;
    @ApiModelProperty(value = "押金")
    private BigDecimal depositBalance;
    @ApiModelProperty(value = "信用额度")
    private BigDecimal creditBalance;
}
